package com.lambkit.module.ucenter.web.controller;

import com.jfinal.log.Log;
import com.lambkit.module.ucenter.common.UcenterResult;
import com.lambkit.module.ucenter.common.UcenterResultConstant;
import com.lambkit.web.controller.LambkitController;

/**
 * 注册控制器
 */
//@Controller
public class SignController extends LambkitController {

	private static final Log LOG = Log.getLog(SignController.class);

    //@RequestMapping(value = "/signup", method = RequestMethod.POST)
    public void signup() {
    	if("GET".equalsIgnoreCase(getRequest().getMethod())) {
			render("/reg");
		} else {
			renderJson(new UcenterResult(UcenterResultConstant.SUCCESS, ""));
		}
    }

    //@RequestMapping(value = "/signin", method = RequestMethod.POST)
    //@ResponseBody
    public void signin() {
    	if("GET".equalsIgnoreCase(getRequest().getMethod())) {
			render("/reg");
		} else {
			renderJson(new UcenterResult(UcenterResultConstant.SUCCESS, ""));
		}
    }

    //@RequestMapping(value = "/signout", method = RequestMethod.GET)
    //@ResponseBody
    public void index() {
        renderJson("signout");
    }

    //@RequestMapping(value = "/password_reset", method = RequestMethod.GET)
    public void passwordReset() {
        render("/password");
    }

}